﻿namespace Common.Contract.Authentication.Record
{
    using Common.Type;
    using System;
    using System.Collections.Generic;
    using System.Runtime.Serialization;

    [DataContract]
    public class UserRecord
    {
        [DataMember]
        public Guid ApplicationKey { get; set; }
        [DataMember(IsRequired = true)]
        public string UserName { get; set; }
        [DataMember]
        public string Password { get; set; }
        [DataMember]
        public string ContractType { get; set; }
        [DataMember]
        public string Dao { get; set; }
        [DataMember]
        public string FullName { get; set; }
        [DataMember]
        public string Branch { get; set; }
        [DataMember]
        public string Zone { get; set; }
        [DataMember]
        public string StartWorkingDate { get; set; }
        [DataMember(IsRequired = false)]
        public string GroupIdentifier { get; set; }
        [DataMember(IsRequired = false)]
        public string GroupName { get; set; }
        [DataMember]
        public string BranchCode { get; set; }
        [DataMember]
        public string BranchId { get; set; }
        [DataMember]
        public string Email { get; set; }
        [DataMember]
        public string Avatar { get; set; }
        [DataMember]
        public int DepartmentId { get; set; }
        [DataMember]
        public string Position { get; set; }
        [DataMember]
        public string Team { get; set; }
        [DataMember]
        public List<TreeViewNode> MenuNodes { get; set; }
        [DataMember]
        public List<string> DaoSubOrdinatorList { get; set; }
    }
}
